package com.gmcc.tripleplay.app;

import com.gmcc.tripleplay.control.AlbumControl;
import com.gmcc.tripleplay.entity.Album;
import com.gmcc.tripleplay.entity.User;
import com.sara.loader.imageview.ImageViewUtil;
import com.sara.util.ErrorCodeUtils;

import android.app.Application;

public class AndroidApplication extends Application {
    private Album album;
    private String videoUrl;
    private User user;

	@Override
	public void onCreate() {
		super.onCreate();
		ErrorCodeUtils.buildErrorCodeMapping(this);
		AlbumControl.init(this);
		ImageViewUtil.init(this);
	}

    public Album getAlbum() {
        return album;
    }

    public synchronized void setAlbum(Album album) {
        this.album = album;
    }

    public String getVideoUrl() {
        return videoUrl;
    }

    public synchronized void setVideoUrl(String url) {
        videoUrl = url;
    }

    public User getUser() {
        return user;
    }

    public synchronized void setUser(User user) {
        this.user = user;
    }
}
